/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package disco;

/**
 *
 * @author sauronnikko
 */
public class CFQRequestKey implements Comparable<CFQRequestKey> {
    
    int bloque;
    int hashCode;
    
    public CFQRequestKey(int bloque, int hashCode) {
        this.bloque = bloque;
        this.hashCode = hashCode;
        
    }
    
    public int compareTo(CFQRequestKey o1) {
        if (this.bloque == o1.bloque) {
            return 0;
        }
        else if ((this.bloque) > o1.bloque) {
            return 1;
        }
        else {
            return -1;
        }
    }
    
    @Override
    public String toString() {
        String str = "" + bloque + "/" + hashCode;
        return str;
    }
    
    
    
    
    
    
}
